// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from 'axios'
import dataV from '@jiaminghi/data-view'
import ECharts from 'vue-echarts'
import 'echarts'
import { Form, Field, Dialog, Toast, Loading, CellGroup, RadioGroup, Radio, CheckboxGroup, Checkbox } from 'vant' // 按需引入,优化加载速度
// import 'vant/lib/index.css'
// import {dev} from '../config/index'

// console.log(dev.baseurl)
Vue.config.productionTip = false
Vue.use(Form)
Vue.use(Field)
Vue.use(Dialog)
Vue.use(Toast)
Vue.use(Loading)
Vue.use(CellGroup)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(dataV)
Vue.component('ECharts', ECharts)
Vue.prototype.$ajax = axios
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
